home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
capitem.z
/
capitem
Wrap
Text File
|
1998-10-30
|
2KB
|
67 lines
CCCCAAAAPPPPIIIITTTTEEEEMMMM((((1111)))) KKKK----SSSSppppoooooooollll bbbbyyyy XXXXiiiinnnneeeetttt ((((9999////22229999////99994444 8888....2222)))) CCCCAAAAPPPPIIIITTTTEEEEMMMM((((1111))))
NNNNAAAAMMMMEEEE
capitem - look up an item in a printcap entry
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
////uuuussssrrrr////eeeettttcccc////aaaapppppppplllleeeettttaaaallllkkkk////ccccaaaappppiiiitttteeeemmmm _p_r_i_n_t_e_r _i_t_e_m
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The _c_a_p_i_t_e_m program reads an /etc/printcap entry for the
given _p_r_i_n_t_e_r and prints the value of the 2-letter _i_t_e_m on
its standard output, if the item has a value. If _c_a_p_i_t_e_m
cannot find the given _p_r_i_n_t_e_r or _i_t_e_m in the printer's
entry, it will print an error message on standard error.
DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
If the _p_r_i_n_t_e_r and its _i_t_e_m are found in /etc/printcap, the
exit status is 0. An exit status of 1 indicates that _i_t_e_m
was not in _p_r_i_n_t_e_r's printcap entry. If _p_r_i_n_t_e_r is not
found in /etc/printcap, the exit status is 2. Any other
problems will produce an exit status of 3.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
printcap(5)
Page 1 (printed 3/5/98)